package org.springblade.modules.admin.vo.contract;

/**
 * @author zcc
 * @version 1.0
 * @date 2022/7/19 15:50
 */
public class BuildingContractPlusEnums {


	/**
	 * 获取合同来源
	 *
	 * @param contractSource
	 * @return
	 */
	public static String getContractSourceName(Integer contractSource) {
		switch (contractSource) {
			case 1:
				return "新签";
			case 2:
				return "续签";
			case 3:
				return "转签";
			case 4:
				return "丢失";
			case 5:
				return "夺回";
			case 6:
				return "新梯移交";
			case 7:
				return "免保转签";
			default:
				return "新签";
		}
	}



	/**
	 * 获取合同类型
	 *1:	2:	3:	4:
	 * @param contractType
	 * @return
	 */
	public static String getcontractTypeName(Integer contractType) {
		switch (contractType) {
			case 1:
				return "保养合同";
			case 2:
				return "委托合同";
			case 3:
				return "质保合同";
			case 4:
				return "维修合同";
			default:
				return "保养合同";
		}
	}


	/**
	 * 获取付款周期
	 付款周期	1:周期结束时付款	2:周期中期时付款	3:周期开始时付款
	 * @param payDateType
	 * @return
	 */
	public static String getpayDateTypeName(Integer payDateType) {
		switch (payDateType) {
			case 1:
				return "周期结束时付款";
			case 2:
				return "周期中期时付款";
			case 3:
				return "周期开始时付款";
			default:
				return "周期结束时付款";
		}
	}


	/**
	 * 获取付款周期
	 * 支付方式	1:月结	2:两月结	3:季度结	4:四月结	5:半年结	6:年度结	7:预付50%	8:完结50%	9:一次性付款	10:免费
	 * @return
	 */
	public static String getpayDateDescName(Integer payDateDesc) {
		switch (payDateDesc) {
			case 1:
				return "月结";
			case 2:
				return "两月结";
			case 3:
				return "季度结";
			case 4:
				return "四月结";
			case 5:
				return "半年结";
			case 6:
				return "年度结";
			case 7:
				return "预付50%";
			case 8:
				return "结50%";
			case 9:
				return "一次性付款";
			case 10:
				return "免费";
			default:
				return "月结";
		}
	}
	/**
	 * 获取付款周期
	 * 发票类型	1:增值税专用发票	2:增值税普通发票	3:收据	4:已收款未开票	5:已开收据为付款	6:已开收据未开发票	7：预支发票	8：其它
	 * @return
	 */
	public static String getInvoiceTypeName(Integer invoiceType) {
		switch (invoiceType) {
			case 1:
				return "增值税专用发票";
			case 2:
				return "增值税普通发票";
			case 3:
				return "收据";
			case 4:
				return "已收款未开票";
			case 5:
				return "已开收据为付款";
			case 6:
				return "已开收据未开发票";
			case 7:
				return "预支发票";
			case 8:
				return "其它";
			default:
				return "其它";
		}
	}


	/**
	 * 获取付款周期
	 * 保养类型	1:清包	2:半包	3:全包	4:三包	5:小包	6:免包	7:维修
	 * @return
	 */
	public static String getMaintainTypeName(Integer maintainType) {
		switch (maintainType) {
			case 1:
				return "清包";
			case 2:
				return "半包";
			case 3:
				return "全包";
			case 4:
				return "三包";
			case 5:
				return "小包";
			case 6:
				return "免包";
			case 7:
				return "维修";
			case 8:
				return "其它";
			default:
				return "其它";
		}
	}

	/**
	 * 获取付款周期
	 * 费用类型1：包缴，2代缴,3:自缴
	 * @return
	 */
	public static String getCostTypeName(Integer yearCostType) {
		switch (yearCostType) {
			case 1:
				return "包缴";
			case 2:
				return "代缴";
			case 3:
				return "自缴";
			default:
				return "其它";
		}
	}

	/**
	 * 获取付款周期
	 * 费用类型支付方式
	 * 1:支票
	 * 2:现金
	 * 3:电汇
	 * 4:成若电汇
	 * @return
	 */
	public static String getpayTypeName(Integer payType) {
		switch (payType) {
			case 1:
				return "支票";
			case 2:
				return "现金";
			case 3:
				return "电汇";
			case 4:
				return "成若电汇";
			default:
				return "现金";
		}
	}

}
